<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }

        .checkbox-inline {
            line-height: 5px;
        }

        .search {
            width: 25%;
        }

        /* 设置搜索框宽度 */
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-md-2">
                    <span class="label label-default"
                          style="width: 100%;display: inline-block;font-size: 16px;margin-bottom: 10px;height: 35px;line-height: 28px">优惠券类型</span>
                    <div class="list-group" style="height: 82vh;overflow: scroll;">
                        <a href="#" v-for="(item,index) in selects"
                           :class="[index == typeIndex ? 'active' : '', 'list-group-item']" @click="selectType(index)">{{item.keyValue}}</a>
                    </div>
                </div>
                <div class="col-md-10 example" style="margin-top: -10px;">
                    <div class="btn-group" id="toolbar" role="group">
                        <button type="button" class="btn btn-outline btn-default" @click="add(0)" v-if="permission(0)">
                            <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="update(1)"
                                v-if="permission(1)">
                            <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>立即失效
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="push(1)" v-if="permission(4)">
                            <i class="glyphicon glyphicon-send" aria-hidden="true"></i>发布优惠券
                        </button>
                        <button type="button" class="btn btn-outline btn-default" @click="del(2)" v-if="permission(2)">
                            <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>删除
                        </button>
                        <div style="display: inline-block;margin-left: 20px">
                            <select id="status" class="form-control" @change="selectStatus">
                                <option value="">---请选择是否有效---</option>
                                <option value="1">---有效---</option>
                                <option value="0">---失效---</option>
                            </select>
                        </div>
                    </div>
                    <table id="bootstrapTableEvents"></table>
                </div>

            </div>
        </div>
    </div>
</div>

<script src="../../../../js/coupon-manage/coupon/coupon/list.js"></script>
</body>
</html>
